import reequest, { request } from "../../../../request/request"
Page({
  data: {
    id: "",
    name: "",
    // 学校 > 班级 > 成绩分组
    achievementCondition: {},
    // 笔试
    written: "76",
    // 机试
    computer: "66",
    // 答辩
    speech: "66",
    // 总分
    sum: ""
  },
  onLoad: function (options) {
    console.log(options)
    let achievementCondition = wx.getStorageSync("achievementCondition");
    console.log(achievementCondition)
    this.setData({
      id: options.id,
      name: options.name,
      achievementCondition,
      sum:Number(this.data.written) + Number(this.data.computer) + Number(this.data.speech)
    })

  },
  // 获取成绩
  queryAchievement(){
    request({url:""})
  }
})